import request from '@/axios'

export const uploadImg = (data: File): Promise<IResponse> => {
  return request.post({
    url: '/upload/image',
    data: { file: data },
    headers: { 'Content-Type': 'multipart/form-data' }
  })
}
